<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:switch="${sex}">
    <span th:case="男">真好</span><br/>
    <span th:case="女">真不开心</span><br/>
    <span th:case="*">草拟吗</span><br/>
</div>
</body>
</html>